package five;

/**
 * Created by ab on 2016/11/2.
 * 修改前一个程序，让两个重载方法各自接受两个类型的不同的参数
 * 但二者顺序相反，测试是否工作
 */
public class task6 {
    static class Dog{
        void bark(){
            System.out.println("common dog bark");
        }
        void bark(String content,int i){
            System.out.println("no common dog bark : "+content);
        }
        void bark(int i,String content){
            System.out.println("number dog bark : "+i);
        }
    }

    public static void main(String[] args){
        Dog dog=new Dog();
        dog.bark(0,"ww");
        dog.bark("ww",0);
    }
}
